<?php

namespace App\Http\Controllers\Home;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Util\SqlServerUtil;
use Cookie;

class IndexController extends Controller
{

    protected $response = [
        "code" => 200,
        "message" => "接口请求成功",
        "result" => []
    ];

    protected $SqlServer = null;

    public function __construct(Request $request){
        $temp = SqlServerUtil::getModel($request);
        if($temp){
            $this->SqlServer = $temp['SqlServer'];
        }
    }
    public function index()
    {
        return view('index');
    }
    public function test()
    {
        return view('test',['time'=>date("Y-m-d H:i:s", time()), 'place'=>'Beijing']);
    }
    public function customer()
    {
        return view('home/customer');
    }
}
